package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

public class Task implements Serializable {
    private Integer taskId;

    private String taskName;

    private String taskContent;

    private Date taskOpenTime;

    private Date taskCompleteTime;

    private Integer taskChargeId;

    private Integer taskPro;

    private Integer taskPublisherId;

    private Integer taskState;

    private String taskType;

    private String taskPriority;

    private Integer taskMilestoneId;

    private Integer taskFunctionId;

    private static final long serialVersionUID = 1L;

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent == null ? null : taskContent.trim();
    }

    public Date getTaskOpenTime() {
        return taskOpenTime;
    }

    public void setTaskOpenTime(Date taskOpenTime) {
        this.taskOpenTime = taskOpenTime;
    }

    public Date getTaskCompleteTime() {
        return taskCompleteTime;
    }

    public void setTaskCompleteTime(Date taskCompleteTime) {
        this.taskCompleteTime = taskCompleteTime;
    }

    public Integer getTaskChargeId() {
        return taskChargeId;
    }

    public void setTaskChargeId(Integer taskChargeId) {
        this.taskChargeId = taskChargeId;
    }

    public Integer getTaskPro() {
        return taskPro;
    }

    public void setTaskPro(Integer taskPro) {
        this.taskPro = taskPro;
    }

    public Integer getTaskPublisherId() {
        return taskPublisherId;
    }

    public void setTaskPublisherId(Integer taskPublisherId) {
        this.taskPublisherId = taskPublisherId;
    }

    public Integer getTaskState() {
        return taskState;
    }

    public void setTaskState(Integer taskState) {
        this.taskState = taskState;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType == null ? null : taskType.trim();
    }

    public String getTaskPriority() {
        return taskPriority;
    }

    public void setTaskPriority(String taskPriority) {
        this.taskPriority = taskPriority == null ? null : taskPriority.trim();
    }

    public Integer getTaskMilestoneId() {
        return taskMilestoneId;
    }

    public void setTaskMilestoneId(Integer taskMilestoneId) {
        this.taskMilestoneId = taskMilestoneId;
    }

    public Integer getTaskFunctionId() {
        return taskFunctionId;
    }

    public void setTaskFunctionId(Integer taskFunctionId) {
        this.taskFunctionId = taskFunctionId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", taskId=").append(taskId);
        sb.append(", taskName=").append(taskName);
        sb.append(", taskContent=").append(taskContent);
        sb.append(", taskOpenTime=").append(taskOpenTime);
        sb.append(", taskCompleteTime=").append(taskCompleteTime);
        sb.append(", taskChargeId=").append(taskChargeId);
        sb.append(", taskPro=").append(taskPro);
        sb.append(", taskPublisherId=").append(taskPublisherId);
        sb.append(", taskState=").append(taskState);
        sb.append(", taskType=").append(taskType);
        sb.append(", taskPriority=").append(taskPriority);
        sb.append(", taskMilestoneId=").append(taskMilestoneId);
        sb.append(", taskFunctionId=").append(taskFunctionId);
        sb.append("]");
        return sb.toString();
    }
}